import request from "./request"

// 获取好友列表
export function getFriends (userId) {
  return request({
    method: 'GET',
    url: `/user/getFriends/${userId}`
  })
}

// 添加好友接口
export function addFriend (userName) {
  return request({
    method: 'POST',
    url: '/addFriend',
    params: {
      userName
    }
  })
}